<template>
	<view>
		<button type="primary" @click="select">弹出菜单</button>
	</view>
</template>

<script setup>

let xueli = ["高中","大专","本科","研究生"]
	
function select(){
	uni.showActionSheet({
		itemList:xueli,
		itemColor:"#007aff",
		title:"学历",
		
		success: (res) => {
			console.log(res);
			console.log(xueli[res.tapIndex]);
		}
	})
}
	uni.setNavigationBarTitle({title:"设置导航条"})
	uni.setNavigationBarColor({
		frontColor:"#fff",
		backgroundColor:"#007aff",
		animation:30,
		timingFunc:"easeInOut"
	})
	uni.showNavigationBarLoading()
	setTimeout(()=>{
		uni.hideNavigationBarLoading()
	},3000)
</script>

<style lang="scss" scoped>
	       
</style>
